var str = "A";
var width = 1;
var height = 10;
for (var i = 0; i < height; i++) {
  let result = "";
  for (var j = 0; j < width; j++) {
    result += str;
  }
  width += 1;
  log(result);
}


function log(str) {
  console.log(str);
}
